package com.Blog.www.po;

import java.util.Objects;

/**
 * 用户收藏
 *
 * @author 君未洋
 */
public class UserLike {
    private int id;
    private int userid;
    private int blogid;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getBlogid() {
        return blogid;
    }

    public void setBlogid(int blogid) {
        this.blogid = blogid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserLike userLike = (UserLike) o;
        return id == userLike.id && userid == userLike.userid && blogid == userLike.blogid;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userid, blogid);
    }
}
